#pragma once

class CTestClient2App: public CWinApp {
public:

	CTestClient2App( void );

	virtual BOOL InitInstance( void );
	BOOL ExitInstance( void );

private:

	CComPtr<IPanicButton> m_pPanicButton;
	CComPtr<IConnectionPoint> m_pConnectionPoint;
	CComPtr<IPanicButtonEventSink2> m_pPanicButtonEventSink;
	DWORD m_dwConnectionPointCookie;

	bool _CreatePanicButtonObjects( void );
	void _ReleasePanicButtonObjects( void );

	DECLARE_MESSAGE_MAP( )

};

extern CTestClient2App theApp;
